package com.cw1.builder.improveMethod2;

/**
 * @Author qiuMi
 * @description 房子 - 建造者
 * @Date 2022-10-23 22:17
 **/
public abstract class HouseBuilder {
    protected House house = new House();

    /**
     * 打地基
     */
    public abstract void buildBasic();

    /**
     * 砌墙
     */
    public abstract void buildWalls();

    /**
     * 封顶
     */
    public abstract void roofed();

    /**
     * 将盖好的房子返回
     *
     * @return house
     */
    public House build(){
        return house;
    }

}
